<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>-</title>
	<link rel="stylesheet" href='<c:url value="/resources/css/main.css"/>' type="text/css" />
	<link rel="stylesheet" type="text/css" href='<c:url value="/resources/easyui/themes/default/easyui.css"/>'/>
	<link rel="stylesheet" type="text/css" href='<c:url value="/resources/easyui/themes/icon.css"/>'/>
	<script type="text/javascript" src='<c:url value="/resources/easyui/jquery-1.4.4.min.js"/>'></script>
	<script type="text/javascript" src='<c:url value="/resources/easyui/jquery.easyui.min.js"/>'></script>
</head>
<body id="jive-body">
<div id="main">
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tbody>
		<tr valign="top">
			<td width="99%" id="jive-content">
 				<h1>系统信息</h1>
				<div id="jive-main-content">
					<p>下面是系统信息列表：</p>

<div class="jive-table">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead>
    <tr>
        <th colspan="2">运行信息</th>
    </tr>
</thead>
<tbody>
    <tr><td class="c1">主机</td><td class="c2">${host}</td></tr>
    <tr><td class="c1">Server URL</td><td class="c2">${serverUrl}</td></tr>
    <tr><td class="c1">服务启动时间</td><td class="c2"><c:out value="${serverStartTime}"/></td></tr>
    <tr><td class="c1">OS Name</td><td class="c2"><c:out value="${osName}"/></td></tr>
    <tr><td class="c1">OS Version</td><td class="c2"><c:out value="${osVersion}"/></td></tr>
    <tr><td class="c1">Java Home</td><td class="c2"><c:out value="${javaHome}"/></td></tr>
    <tr><td class="c1">Java Runtime Name</td><td class="c2"><c:out value="${javaRuntimeName}"/></td></tr>
    <tr><td class="c1">Java Version</td><td class="c2"><c:out value="${javaVersion}"/></td></tr>
    <tr><td class="c1">Java Vendor</td><td class="c2"><c:out value="${javaVendor}"/></td></tr>
    <tr><td class="c1">Java VM Version</td><td class="c2"><c:out value="${javaVmVersion}"/></td></tr>
    <tr><td class="c1">Memory Allocated</td><td class="c2"><c:out value="${maxMemory}"/> MB</td></tr>
    <tr><td class="c1">Memory Usage</td><td class="c2"><c:out value="${totalMemory}"/> MB</td></tr>
</tbody>
</table>
</div>
<br/><br/>

<div class="jive-table">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead>
    <tr>
        <th colspan="2">服务信息</th>
    </tr>
</thead>
<tbody>
    <tr><td class="c1">Password Encoder</td><td class="c2"><c:out value="${passwordEncoder}"/></td></tr>
    <tr><td class="c1">Authentication Handler</td><td class="c2"><c:out value="${authenticationHandler}"/></td></tr>
    <tr><td class="c1">Application Title</td><td class="c2"><c:out value="${applicationTitle}"/></td></tr>
    <tr><td class="c1">Root Account</td><td class="c2"><c:out value="${rootAccount}"/></td></tr>
</tbody>
</table>
</div>
<br/><br/>

<div class="jive-table">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead>
    <tr>
        <th colspan="2">数据库信息</th>
    </tr>
</thead>
<tbody>
    <tr><td class="c1">数据库</td><td class="c2"><c:out value="${databaseType}"/></td></tr>
    <tr><td class="c1">JDBC 驱动程序</td><td class="c2"><c:out value="${databaseDriver}"/></td></tr>
    <tr><td class="c1">DB 连接 URL</td><td class="c2"><c:out value="${databaseUrl}"/></td></tr>
    <tr><td class="c1">DB 用户</td><td class="c2"><c:out value="${databaseUsername}"/></td></tr>
    <tr><td class="c1">Database Validation SQL</td><td class="c2"><c:out value="${databaseValidation}"/></td></tr>
    <tr><td class="c1">Hibernate Show SQL</td><td class="c2"><c:out value="${hibernateShowSql}"/></td></tr>
    <tr><td class="c1">Hibernate Dialect</td><td class="c2"><c:out value="${hibernateDialect}"/></td></tr>
</tbody>
</table>
</div>
<br/><br/>

<div class="jive-table">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<thead>
    <tr>
        <th colspan="2">Web Service</th>
    </tr>
</thead>
<tbody>
    <tr>
    	<td class="c1">Account Service</td>
    	<td class="c2">
    		<a href="${serverUrl}/services/account?wsdl" target="_blank">${serverUrl}/services/account?wsdl</a>
    	</td>
    </tr>
    <tr>
    	<td class="c1">Entity Service</td>
    	<td class="c2">
    		<a href="${serverUrl}/services/entity?wsdl" target="_blank">${serverUrl}/services/entity?wsdl</a>
    	</td>
    </tr>
    <tr>
    	<td class="c1">Authorization Service</td>
    	<td class="c2">
    		<a href="${serverUrl}/services/authorization?wsdl" target="_blank">${serverUrl}/services/authorization?wsdl</a>
    	</td>
    </tr>
</tbody>
</table>
</div>
<br/><br/>

				</div>
			</td>
		</tr>
	</tbody>
	</table>
</div>
</body>
</html>
